package com.qfedu.lc.app.controller;

import com.qfedu.lc.app.service.SmsLogFeign;
import com.qfedu.lc.common.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * --- 年薪百万 ---
 * ---So easy---
 *
 * @author ZhiHuiJun
 * @motto 学习都是人上人
 * @desc 就是很帅很优秀
 * @CC 每天漂亮、幸福、快乐、自由
 */
@RestController
@RequestMapping("/api/sms")
public class SmsLogController {

    @Autowired
    private SmsLogFeign smsLogFeign;

    @RequestMapping("/sendrcode")
    public R sendRegisterCode(String phone){
            return smsLogFeign.sendRegisterCode(phone);
    }

    @RequestMapping("/sendlcode")
    public R sendLoginCode(String phone){
     return smsLogFeign.senLoginCode(phone);
    }


}
